package com.wxg.config;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 网关白名单配置
 */
@Data
@Component
@EqualsAndHashCode(callSuper = false)
@ConfigurationProperties(prefix="secure.ignore")
@PropertySource(factory = YamlPropertySourceFactory.class, value = "classpath:ignore-url.yml")
public class IgnoreUrlsProperties {
    private List<String> urls;
}
